/*
	sample_scarlett_test.red
	
	This Scarlett program was designed by Scarlett. It searches for the keyword "green" 
	on Target's website and prints the dollar sign ($) to a file for each match.
*/


// Saving the google search results
save fetch uri from http://www.google.com/search?q=site:target.com+green into targetgreen

show 'The webpages are :'
show ''
show fetch uri from http://www.google.com/search?q=site:target.com+green



for every eachURI in fetch uri from http://www.google.com/search?q=site:target.com+green

	show eachURI
	write '$' into file:///greentarget.txt
loop

show 'We just wrote to greentarget.txt'



show ''
show 'done'
show ''

